const fs = require('fs')
module.exports.getFileJson = (filePath) => {
    return new Promise((resolve, reject) => {
        fs.readFile(filePath, 'utf-8', (error, data) => {
            debugger
            if (error) {
                reject(error)
            } else {
                resolve(data)
            }
        })
    })

}